import request2 from '@/utils/request2'
import { unionApiUrl } from '../../config'
// let unionApiUrl = 'union-producer-server'
export default {
    // 分页查询
    getPageStaffCare(data, params) {
        return request2({
            url: unionApiUrl + '/staffCare/getPageStaffCare', method: 'post', params, data
        })
    },
    // 删除创新工作室
    deleteByPrimaryKey(params) {
        return request2({
            url: unionApiUrl + '/staffCare/deleteByPrimaryKey', method: 'post', params
        })
    },
    // 添加创新工作室
    insertSelective(data, params) {
        return request2({
            url: unionApiUrl + '/staffCare/insertSelective', method: 'post', params, data
        })
    },
    // 修改创新工作室
    updateByPrimaryKeySelective(data, params) {
        return request2({
            url: unionApiUrl + '/staffCare/updateByPrimaryKeySelective', method: 'post', params, data
        })
    },
    // 获取职工教育信息
    getStaffCareById(data, params) {
        return request2({
            url: unionApiUrl + '/staffCare/getStaffCareById', method: 'get', params, data
        })
    }
}
